goog.provide('test.architecture');

goog.require('Stefan.Timer');
goog.require('Stefan.Layer');
goog.require('Stefan.Circle');
goog.require('Stefan.RoundedRect');
goog.require('Stefan.Text');
goog.require('Stefan.fill.Border');
goog.require('Stefan.ui.Button');

T.dom.ready(function() {
	var layer = new Stefan.Layer(document.body, {
		width: 600,
		height: 450,
		left: 100,
		top: 100
	});
	
	T.dom.setStyle(layer.canvas, 'border', "3px solid rgba(0, 0, 0, .5)");
	
	var level1 = new Stefan.RoundedRect().setPosition(200, 200).
	setSize(200, 200).setAnchor(0, 0).setFill('rgba(255,0,0,0.5)');
	
	var level2 = new Stefan.Rect().setSize(300, 300).setPosition(0, 0).
	setAnchor(0.5, 0.5).setFill('rgba(0,0,255,0.5)');
	
	var level3 = new Stefan.Circle().setSize(150, 150).setPosition(0, 0).
	setAnchor(0.5, 0).setFill('rgba(0,255,0,0.5)');
	
	level2.appendChild(level3);
	
	level1.appendChild(level2);
	
	layer.appendChild(level1);
	
	Stefan.Timer.active();
});

